package com.edu.bean;/*
 *@Autor:yjy
 *@Date:2025/10/17:17:18:
 *
 */

import java.util.List;

public class Department {
    private int id;
    private String deptName;
    private int parentId;
    private List<Employee> employees;
    private int employeeCount;
    private double avgSalary;

    public Department() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public List<Employee> getEmployees() {
        return employees;
    }

    public void setEmployees(List<Employee> employees) {
        this.employees = employees;
    }

    public int getEmployeeCount() {
        return employeeCount;
    }

    public void setEmployeeCount(int employeeCount) {
        this.employeeCount = employeeCount;
    }

    public double getAvgSalary() {
        return avgSalary;
    }

    public void setAvgSalary(double avgSalary) {
        this.avgSalary = avgSalary;
    }

    @Override
    public String toString() {
        return "Department{" +
                "id=" + id +
                ", deptName='" + deptName + '\'' +
                ", parentId=" + parentId +
                ", employees=" + employees +
                ", employeeCount=" + employeeCount +
                ", avgSalary=" + avgSalary +
                '}';
    }
}
